home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO023.dsk
/
M1.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
8KB
|
401 lines
1 HOME
10 HGR : HCOLOR= 3
19 REM draw mirror
20 HPLOT 9,10 TO 9,155
21 HPLOT 10,10 TO 10,155
22 HPLOT 11,10 TO 11,155
29 REM write Mirror
30 X% = 0:Y% = 6
31 GOSUB 11050
32 REM i
33 X% = 7
34 GOSUB 10350
35 REM r
36 X% = 10
37 GOSUB 10600
38 REM r
39 X% = 16
40 GOSUB 10600
41 REM o
42 X% = 22
43 GOSUB 10500
44 REM r
45 X% = 28
46 GOSUB 10600
49 REM Draw Perp
50 HPLOT 12,76 TO 130,76
51 HPLOT 12,77 TO 130,77
59 REM Write Line Perp
60 X% = 138:Y% = 75
61 GOSUB 11000
62 REM i
63 X% = 145
64 GOSUB 10350
65 REM n
66 X% = 148
67 GOSUB 10450
68 REM e
69 X% = 154
70 GOSUB 10150
71 REM p after 7 spaces
72 X% = 163
73 GOSUB 10550
74 REM e
75 X% = 169
76 GOSUB 10150
77 REM r
78 X% = 175
79 GOSUB 10600
80 REM p
81 X% = 181
82 GOSUB 10550
83 REM e
84 X% = 187
85 GOSUB 10150
86 REM n
87 X% = 193
88 GOSUB 10450
89 REM d
90 X% = 199
91 GOSUB 10100
92 REM i
93 X% = 205
94 GOSUB 10350
95 REM c
96 X% = 208
97 GOSUB 10050
98 REM u
99 X% = 214
100 GOSUB 10700
101 REM l
102 X% = 220
103 GOSUB 10400
104 REM a
105 X% = 223
106 GOSUB 10000
107 REM r
108 X% = 229
109 GOSUB 10600
110 REM Draw Inc & Refl rays
111 HPLOT 107,9 TO 110,15
112 HPLOT 116,17 TO 111,15
113 REM Inc ray
114 HPLOT 109,15 TO 12,75
115 REM Refl ray
116 HPLOT 12,78 TO 109,138
117 REM arrow
118 HPLOT 107,133 TO 109,138
119 HPLOT 106,134 TO 109,138
120 HPLOT 105,138 TO 109,138
121 HPLOT 104,137 TO 109,138
122 HPLOT 104,138 TO 109,138
130 REM Write Incident Ray
131 REM I
132 X% = 137:Y% = 15
133 GOSUB 10950
134 REM n
135 X% = 143
136 GOSUB 10450
137 REM c
138 X% = 149
139 GOSUB 10050
140 REM i
141 X% = 155
142 GOSUB 10350
143 REM d
144 X% = 158
145 GOSUB 10100
146 REM e
147 X% = 164
148 GOSUB 10150
149 REM n
150 X% = 170
151 GOSUB 10450
152 REM t
153 X% = 176
154 GOSUB 10650
155 REM Write Ray
156 REM R & 7 spaces
157 X% = 185
158 GOSUB 11100
159 REM a
160 X% = 192
161 GOSUB 10000
162 REM y
163 X% = 198
164 GOSUB 10850
170 REM Write Refl Ray
171 REM R
172 X% = 138:Y% = 141
173 GOSUB 11100
174 REM e
175 X% = 145
176 GOSUB 10150
177 REM f
178 X% = 151
179 GOSUB 10200
180 REM l
181 X% = 157
182 GOSUB 10400
183 REM e
184 X% = 160
185 GOSUB 10150
186 REM c
187 X% = 166
188 GOSUB 10050
189 REM t
190 X% = 173
191 GOSUB 10650
192 REM e
193 X% = 179
194 GOSUB 10150
195 REM d
196 X% = 185
197 GOSUB 10100
200 REM write Ray R
201 X% = 194
202 GOSUB 11100
203 REM a
204 X% = 201
205 GOSUB 10000
206 REM y
207 X% = 207
208 GOSUB 10850
220 REM draw angles
221 HPLOT 20,70 TO 24,75
222 HPLOT 20,81 TO 24,76
230 REM write angles
231 REM write angles
232 X% = 32:Y% = 72
233 GOSUB 10900
234 REM n
235 X% = 39
236 GOSUB 10450
237 REM g
238 X% = 45
239 GOSUB 10250
240 REM l
241 X% = 51
242 GOSUB 10400
243 REM e
244 X% = 54
245 GOSUB 10150
246 REM o and 7 spaces
247 X% = 63
248 GOSUB 10500
249 REM f
250 X% = 69
251 GOSUB 10200
252 REM inc and 7 spaces
253 X% = 77
254 GOSUB 10950
255 REM n
256 X% = 83
257 GOSUB 10450
258 REM c
259 X% = 89
260 GOSUB 10050
261 REM i
262 X% = 95
263 GOSUB 10350
264 REM d
265 X% = 98
266 GOSUB 10100
267 REM e
268 X% = 104
269 GOSUB 10150
270 REM n
271 X% = 110
272 GOSUB 10450
273 REM c
274 X% = 116
275 GOSUB 10050
276 REM e
277 X% = 122
278 GOSUB 10150
280 REM write Ang of ref
281 REM A
282 X% = 32:Y% = 88
283 GOSUB 10900
284 REM n
285 X% = 39
286 GOSUB 10450
287 REM g
288 X% = 45
289 GOSUB 10250
290 REM l
291 X% = 51
292 GOSUB 10400
293 REM e
294 X% = 54
295 GOSUB 10150
296 REM of & 7 spaces
297 X% = 63
298 GOSUB 10500
299 REM f
300 X% = 69
301 GOSUB 10200
302 REM refl & 7 spaces
303 X% = 78
304 GOSUB 11100
305 REM e
306 X% = 84
307 GOSUB 10150
308 REM f
309 X% = 90
310 GOSUB 10200
311 REM l
312 X% = 96
313 GOSUB 10400
314 REM e
315 X% = 99
316 GOSUB 10150
317 REM c
318 X% = 105
319 GOSUB 10050
320 REM t
321 X% = 111
322 GOSUB 10650
323 REM i
324 X% = 117
325 GOSUB 10350
326 REM o
327 X% = 120
328 GOSUB 10500
329 REM n
330 X% = 126
331 GOSUB 10450
7000 VTAB (21): PRINT "Press any key for an explanation."
7001 GET KY$: CALL 62450
7002 PRINT CHR$(4);"run flat"
8000 END
9999 REM a
10000 HPLOT X%,Y% -1
10010 HPLOT X% +1,Y% TO X% +2,Y%
10020 HPLOT X% +1,Y% -2 TO X% +2,Y% -2
10030 HPLOT X% +1,Y% -4 TO X% +2,Y% -4
10040 HPLOT X% +3,Y% TO X% +3,Y% -3
10041 RETURN
10049 REM c
10050 HPLOT X%,Y% -1 TO X%,Y% -3
10060 HPLOT X% +1,Y% TO X% +3,Y%
10070 HPLOT X% +1,Y% -4 TO X% +3,Y% -4
10071 RETURN
10099 REM d
10100 HPLOT X%,Y% -1 TO X%,Y% -3
10110 HPLOT X% +1,Y% TO X% +2,Y%
10120 HPLOT X% +1,Y% -4 TO X% +2,Y% -4
10130 HPLOT X% +3,Y% TO X% +3,Y% -6
10131 RETURN
10149 REM e
10150 HPLOT X%,Y% -1 TO X%,Y% -3
10160 HPLOT X% +1,Y% TO X% +3,Y%
10170 HPLOT X% +1,Y% -2 TO X% +2,Y% -2
10180 HPLOT X% +1,Y% -4 TO X% +2,Y% -4
10190 HPLOT X% +3,Y% -3
10191 RETURN
10199 REM f
10200 HPLOT X%,Y% -3 TO X% +2,Y% -3
10210 HPLOT X% +1,Y% TO X% +1,Y% -5
10220 HPLOT X% +2,Y% -6 TO X% +3,Y% -6
10221 RETURN
10249 REM g
10250 HPLOT X%,Y% -1 TO X%,Y% -3
10260 HPLOT X% +1,Y% TO X% +2,Y%
10270 HPLOT X% +1,Y% -4 TO X% +2,Y% -4
10280 HPLOT X% +3,Y% +2 TO X% +3,Y% -3
10290 HPLOT X% +1,Y% +3 TO X% +2,Y% +3
10291 RETURN
10299 REM h
10300 HPLOT X%,Y% TO X%,Y% -6
10310 HPLOT X% +1,Y% -4, TO X% +1,Y% -4
10320 HPLOT X% +3,Y% TO X% +3,Y% -3
10321 RETURN
10349 REM i
10350 HPLOT X%,Y% TO X%,Y% -3
10360 HPLOT X%,Y% -5
10361 RETURN
10399 REM l
10400 HPLOT X%,Y% TO X%,Y% -6
10401 RETURN
10449 REM n
10450 HPLOT X%,Y% TO X%,Y% -4
10460 HPLOT X% +1,Y% -3
10470 HPLOT X% +2,Y% -4
10480 HPLOT X% +3,Y% TO X% +3,Y% -3
10481 RETURN
10499 REM o
10500 HPLOT X%,Y% -1 TO X%,Y% -3
10510 HPLOT X% +1,Y% TO X% +2,Y%
10520 HPLOT X% +1,Y% -4 TO X% +2,Y% -4
10530 HPLOT X% +3,Y% -1 TO X% +3,Y% -3
10531 RETURN
10549 REM p
10550 HPLOT X%,Y% +3 TO X%,Y% -4
10560 HPLOT X% +1,Y% TO X% +2,Y%
10570 HPLOT X% +1,Y% -4 TO X% +2,Y% -4
10580 HPLOT X% +3,Y% -1 TO X% +3,Y% -3
10581 RETURN
10599 REM r
10600 HPLOT X%,Y% TO X%,Y% -4
10610 HPLOT X% +1,Y% -3
10620 HPLOT X% +2,Y% -4 TO X% +3,Y% -4
10621 RETURN
10649 REM t
10650 HPLOT X%,Y% -4
10660 HPLOT X% +1,Y% TO X% +1,Y% -6
10670 HPLOT X% +2,Y% -4
10671 RETURN
10699 REM u
10700 HPLOT X%,Y% -1 TO X%,Y% -4
10710 HPLOT X% +1,Y%
10720 HPLOT X% +2,Y% -1
10730 HPLOT X% +3,Y% TO X% +3,Y% -4
10731 RETURN
10749 REM v
10750 HPLOT X%,Y% -2 TO X%,Y% -4
10760 HPLOT X% +1,Y% -1
10770 HPLOT X% +2,Y%
10780 HPLOT X% +3,Y% -1
10790 HPLOT X% +4,Y% -2 TO X% +4,Y% -4
10791 RETURN
10799 REM x
10800 HPLOT X%,Y% TO X% +4,Y% +4
10810 HPLOT X% +5,Y% TO X%,Y% -4
10811 RETURN
10849 REM y
10850 HPLOT X%,Y% -1 TO X%,Y% -4
10860 HPLOT X% +1,Y% TO X% +2,Y%
10870 HPLOT X% +3,Y% +2 TO X% +3,Y% -4
10880 HPLOT X% +2,Y% +3
10881 RETURN
10899 REM A
10900 HPLOT X%,Y% TO X%,Y% -4
10910 HPLOT X% +1,Y% -5 TO X% +2,Y% -6
10920 HPLOT X% +3,Y% -5
10930 HPLOT X% +1,Y% -2 TO X% +3,Y% -2
10940 HPLOT X% +4,Y% TO X% +4,Y% -4
10941 RETURN
10949 REM I
10950 HPLOT X% +1,Y% TO X% +3,Y%
10960 HPLOT X% +2,Y% -1 TO X% +2,Y% -5
10970 HPLOT X% +1,Y% -6 TO X% +3,Y% -6
10971 RETURN
10999 REM L
11000 HPLOT X%,Y% TO X%,Y% -6
11010 HPLOT X% +1,Y% TO X% +4,Y%
11011 RETURN
11049 REM M
11050 HPLOT X%,Y% TO X%,Y% -6
11060 HPLOT X% +1,Y% -5
11070 HPLOT X% +2,Y% -3 TO X% +2,Y% -5
11080 HPLOT X% +3,Y% -5
11090 HPLOT X% +4,Y% TO X% +4,Y% -6
11091 RETURN
11099 REM R
11100 HPLOT X%,Y% TO X%,Y% -6
11110 HPLOT X% +1,Y% -3 TO X% +3,Y% -3
11120 HPLOT X% +1,Y% -6 TO X% +3,Y% -6
11130 HPLOT X% +4,Y% -4 TO X% +4,Y% -5
11140 HPLOT X% +4,Y% TO X% +2,Y% -2
11141 RETURN